//
//  RecommandCaremeCellTableViewCell.m
//  UI_xiangmu
//
//  Created by dllo on 15/4/24.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "RecommandCaremeCellTableViewCell.h"

@implementation RecommandCaremeCellTableViewCell

- (void)dealloc
{
    [_footlabel release];
    [_mylabel release];
    [_myview release];
    [_myimage release];
    [super dealloc];
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.myimage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.myimage];
        [_myimage release];
        self.myview = [[UIView alloc] init];
        [self.myimage addSubview:self.myview];
        self.myview.alpha = 0.5;
        self.myview.backgroundColor = [UIColor blackColor];
        [_myview release];
        self.mylabel = [[UILabel alloc] init];
        [self.myview addSubview:self.mylabel];
        [_mylabel release];
        self.footlabel = [[UILabel alloc] init];
        [self.myview addSubview:self.footlabel];
        [_footlabel release];
        self.mylabel.textColor = [UIColor greenColor];
        self.mylabel.font = [UIFont systemFontOfSize:12];
        self.footlabel = [[UILabel alloc] init];
        [self.myview addSubview:self.footlabel];
        [_footlabel release];
        self.footlabel.font = [UIFont systemFontOfSize:12];
        self.footlabel.textColor = [UIColor greenColor];
        self.footlabel.textAlignment = 2;
    }
    
    
    return self;
}

-(void)layoutSubviews
{
  [super layoutSubviews];
    self.myimage.frame = CGRectMake(3, 3, self.contentView.frame.size.width-6, self.contentView.frame.size.height-6);
    self.myview.frame = CGRectMake(0, 174, self.myimage.frame.size.width, 20);
    self.mylabel.frame = CGRectMake(5, 0, 250, 20);
    self.footlabel.frame = CGRectMake(280, 0, 80, 20);
    
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
